{block name='top'}
<script>
    //手机网站的url 只需改这一处地方即可。
    var mobileAgent = new Array("iphone", "ipod", "ipad", "android", "mobile", "blackberry", "webos", "incognito", "webmate", "bada", "nokia", "lg", "ucweb", "skyfire");
    var browser = navigator.userAgent.toLowerCase();
    var isMobile = false;
    for (var i=0; i<mobileAgent.length; i++){
        if (browser.indexOf(mobileAgent[i])!=-1){
            isMobile = true;
            break;
        }
    }
    if(isMobile){
        //当前是手机或平板等小屏设备浏览，自动跳转到手机网站
        location.href = location.href.replace('www','m');
    }

    $('.nav .index').removeClass('on');
    var match_str = 'news|course|college|service|faq|about|policy|yanxuexinwen|special|photos|viewpoint|training|yanxueganwu';
    if (location.pathname.match(match_str)) {
        $('.nav .' + location.pathname.match(match_str)[0]).addClass('on');
    } else {
        $('.nav .index').addClass('on');
    }
</script>
<div class="content">
    <a class="logo" href="index.html"><img src="__STATIC__/wm_index/images/wm/logo.png" alt=""></a>
    <ul class="nav">
        <li class="index on"><a href="/index.html">首页</a></li>
        <li class="course"><a href="http://www.wmyanxue.com/course/p1/">研学课程</a></li>
        <li class="service"><a href="http://www.wmyanxue.com/products/service.html">营地开发</a></li>
        <li class="college"><a href="http://www.wmyanxue.com/products/college.html">未名学院</a></li>
        <li class="news yanxuexinwen special photos viewpoint training yanxueganwu">
            <a href="http://www.wmyanxue.com/news/p1/">新闻资讯</a>
        </li>
        <li class="policy"><a href="http://www.wmyanxue.com/policy/p1/">政策法规</a></li>
        <!--<li class="album"><a href="/album/">图集</a></li>
        <li class="teacher"><a href="/teacher/">师资</a></li>
        <li class="faq"><a href="/faq.html">FAQ</a></li>-->
        <li class="about"><a href="http://www.wmyanxue.com/about/aboutus.html">关于未名</a></li>
    </ul>
    <div class="right">
        <img src="__STATIC__/index/images/wm/400.jpg">
        <!--<div class="search">
            <form action="/course/">
                <input type="text" name="k" placeholder="请输入关键词">
            </form>
            <p class="image"><img src="__STATIC__/index/images/wm/icon_search.png" alt=""></p>
        </div>
        <div class="btns">
            <a class="btn" href="#">登录</a>
            <a class="btn" href="#">注册</a>
        </div>-->
    </div>
</div>
{/block}